package com.flower.subject.infra.rpc;

import org.springframework.stereotype.Component;

/**
 * @author lavender
 * @version 1.0
 * @date 2024-07-23 16:37
 */
@Component
public class UserRpc {



//    @Resource
//    private UserFeignService userFeignService;
//
//
//    public UserInfo getUserInfo(String userName) {
//        AuthUserDTO authUserDTO = new AuthUserDTO();
//        authUserDTO.setUserName(userName);
//        Result<AuthUserDTO> result = userFeignService.getUserInfo(authUserDTO);
//        UserInfo userInfo = new UserInfo();
//        if(!result.getSuccess()){
//            return userInfo;
//        }
//        AuthUserDTO data = result.getData();
//        userInfo.setUserName(data.getUserName());
//        userInfo.setNickName(data.getNickName());
//        return userInfo;
//
//    }


}
